@layout("/common/_container.html",{js:["/assets/common/libs/pinyin/initials.js","/assets/common/libs/pinyin/pinyin.js","/assets/modular/system/btyBxda/btyBxda_add2.js","/assets/modular/system/dgdzxBxMingxi/zxChengbenMingxi_new.js"]}){
<link rel="stylesheet" href="${ctxPath}/assets/common/css/pack.css?v=${constants.getReleaseVersion()}" media="all">
<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<style>
    .zxxz{
        color: #00B83F;
    }
    .zx-name{
        width: 43px;
    }
    .mxbtn{
        width: 65px;
        padding: 0;
    }
    .btnshop {
        display: inline-block;
        height: 30px;
        line-height: 30px;
        padding: 0 18px;
        background-color: #009688;
        color: #fff;
        white-space: nowrap;
        text-align: center;
        font-size: 14px;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        margin-bottom: 10px;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card fix">
                <div class="layui-card-body">


                    <div class="layui-form toolbar">
                        <div class="layui-form-item">

<!--                            <span class="zxxz">添加：</span>-->
                            <form id="zxChengbenMingxiForm" lay-filter="zxChengbenMingxiForm">
                                <div class="layui-col-sm12 zx">
                                    <input type="hidden" id="userId" name="userId" value="${curuser.id}">
                                    <div class="layui-inline" id="btyZxMdzxId_div" style="margin-left: 0px;vertical-align: middle">
                                        <label class="layui-form-label"  style="width: 57px;" id="md_sx">门店<span style="color: red;">*</span></label>

                                        <div class="layui-inline" style="display: inline-block">
                                            <select id="btyZxMdzxId" name="btyZxMdzxId" lay-filter="queryhp"
                                                    lay-search="btyZxMdzxId"  lay-verify="required" style="float: left">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="margin-left: 0px;">
                                        <label class="layui-form-label"  style="width: 57px;" id="bxr_sx">报销人<span style="color: red;">*</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select name="btyyBxdaId" lay-filter="btyyBxdaId" id="btyyBxdaId" lay-verify="required"
                                                    lay-search="btyyBxdaId">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" id="qtkm_div">
                                        <label class="layui-form-label" style="width: 57px;" id="gjz_sx">关键字<span style="color: red;">*</span></label>
                                        <div class="layui-inline" style="display: inline-block">

<!--                                            <input name="qtkm" type="hidden"/>-->
                                            <select id="keywordId" name="keywordId" lay-filter="keywordId" lay-verify="required"
                                                    lay-search="keywordId">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label zx-name">金额<span style="color: red;">*</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="shuliang" name="shuliang" placeholder="数量" type="text" value="1"
                                                   class="layui-input" lay-verify="required|double" size="2">


                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="unitPrice" name="unitPrice" placeholder="单价" type="text"
                                                   class="layui-input" lay-verify="required|double" size="2"/>
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="jine" name="jine" readonly placeholder="金额" type="text"
                                                   class="layui-input" lay-verify="required|double" size="6"/>
                                        </div>
                                    </div>



                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input type="checkbox" lay-filter="choudian" id="choudian" name="choudian" title="抽点" lay-skin="primary">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="companyView" name="companyView" placeholder="" value="0.00" type="text"
                                                   class="layui-input" lay-verify="" size="8"/>
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="beizhu" name="beizhu" placeholder="请输入备注" type="text"
                                                   class="layui-input" lay-verify="" size="15"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <select id="status" name="status" style="float: left">
                                                <option value="2" selected>待打款</option>
                                                <option value="1">已打款</option>
                                                <option value="6">预留</option>
                                                <option value="9">负单</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-btn-group">
                                        <a class="layui-btn layui-btn-sm" lay-filter="btnSubmit" lay-submit>&emsp;添加&emsp;</a>
                                        <a id="btnQingkong" class="layui-btn layui-btn-sm">清空</a>
                                        <a id="createDakuandan1" class="layui-btn layui-btn-sm">提交</a>
                                    </div>


                                    <div class="layui-inline " id="btyZxChengbenId_div" style="margin-left: 0px;vertical-align: middle">
                                        <label class="layui-form-label"  style="width: 57px;" id="cb_sx">单号<span style="color: red;">*</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select id="btyZxChengbenId" name="btyZxChengbenId" lay-filter="btyZxChengbenId"
                                                    lay-search="btyZxChengbenId"  style="float: left">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label zx-name">日期</label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="riqi1" name="riqi1" placeholder="请选择日期" type="text" readonly
                                                   class="layui-input" autocomplete="off"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="margin-left: 0px;>
                                        <label class="layui-form-label"  >状态</label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select id="status1" name="status1" style="float: left;" >
                                                <option value="">全部</option>
                                                <option value="4">待提交</option>
                                                <option value="5">被打回</option>
                                                <option value="3">待审核</option>
                                                <option value="2">待打款</option>
                                                <option value="1">已打款</option>
                                                <option value="6">预留</option>
                                                <option value="9">负单</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="margin-left: -20px;">
                                        <label class="layui-form-label"  style="width: 57px;">录入人</label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select name="createUser" lay-filter="createUser" id="createUser"
                                                    lay-search="createUser">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="text-align: center;vertical-align: middle">
                                        <a id="btnSearch" class="layui-btn" style="float: left"><i class="layui-icon">&#xe615;</i>搜索
                                        </a>
                                        <a id="bxdaAdd" class="layui-btn" style="float: left">添加报销档案
                                        </a>

                                        <ul class="layui-nav layui-bg-blue" style="float: right;margin-left: 10px">

                                            <li class="layui-nav-item" lay-unselect="" style="line-height:38px;z-index:9999" >
                                                <a href="javascript:;">操作</a>
                                                <dl class="layui-nav-child" style="top:38px">
                                                    <dd><a id="shenpi_tg">审批通过</a></dd>
                                                    <dd><a id="shenpi_dh">审批打回</a></dd>
                                                    <dd><a id="kemuKeyAdd">添加关键字</a></dd>
                                                    <dd><a id="kemuTongbu">科目同步</a></dd>
                                                    <dd><a id="batchZ2">批量转待打款</a></dd>
                                                    <dd><a id="batchZ1">批量转已打款</a></dd>
                                                </dl>
                                            </li>
                                        </ul>

                                    </div>

                            </form>

                        </div>
                    </div>
                    <table class="layui-table" id="zxChengbenMingxiTable" lay-filter="zxChengbenMingxiTable"></table>
                </div>

            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.status == "3" || d.huopinId != ''){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="shenhe">审核</a>
    {{#  }else{ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    {{#  } }}
</script>
<script id="statusTpl" type="text/html">
    {{#  if(d.btyZxChengbenId == ""){ }}
    未生成
    {{#  }else{ }}
    已生成🔒
    {{#  } }}
</script>

<script id="statusTpl2" type="text/html">
    {{#  if(d.status == "4"){ }}
    待提交
    {{#  }else if(d.status == "3"){ }}
    待审批
    {{#  }else if(d.status == "2"){ }}
    待打款
    {{#  }else if(d.status == "1"){ }}
    已打款
    {{#  }else if(d.status == "6"){ }}
    预留
    {{#  }else if(d.status == "7"){ }}
    不打款
    {{#  }else if(d.status == "9"){ }}
    负单
    {{#  }else if(d.status == "8"){ }}
    分账中
    {{#  }else if(d.status == "5"){ }}
    被打回
    {{#  }else{ }}
    其他
    {{#  } }}
</script>
@}
